package com.sskj.gocoin.m.bean;

import com.sskj.common.util.SPUtil;
import com.sskj.gocoin.utils.TimeFormatUtil;
import com.sskj.lib.Constants;

import java.util.Date;

public class FabiPublishListBean {


    /**
     * name1 : 赵小猫
     * name2 : 徐伟杰
     * chu_account : 914717878
     * gou_account : 573292861
     * order_num : 0386244055920
     * add_time : 1567403862
     * min_price : null
     * max_price : null
     * type : 1
     * price : 6.96
     * total_num : 1.0000
     * total_price : 6.96
     * sxfee : 0.0000
     * status : 5
     */

    private String name1;
    private String name2;
    private String chu_account;
    private String gou_account;
    private String order_num;
    private String add_time;
    private String min_price;
    private String max_price;
    private String type;
    private String price;
    private String total_num;
    private String total_price;
    private String sxfee;
    private String status;

    public boolean isBuyer() {
        String account = SPUtil.get(Constants.SP_ACCOUNT, "");
        if (account.equals(gou_account)) {
            return true;
        }
        return false;
    }

    public String getChu_account() {
        return chu_account;
    }

    public void setChu_account(String chu_account) {
        this.chu_account = chu_account;
    }

    public String getGou_account() {
        return gou_account;
    }

    public void setGou_account(String gou_account) {
        this.gou_account = gou_account;
    }

    public String getOrder_num() {
        return order_num;
    }

    public void setOrder_num(String order_num) {
        this.order_num = order_num;
    }

    public String getAdd_time() {
        return TimeFormatUtil.SF_FORMAT_E.format(new Date(Long.valueOf(add_time) * 1000));
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTotal_num() {
        return total_num;
    }

    public void setTotal_num(String total_num) {
        this.total_num = total_num;
    }

    public String getTotal_price() {
        return total_price;
    }

    public void setTotal_price(String total_price) {
        this.total_price = total_price;
    }

    public String getSxfee() {
        return sxfee;
    }

    public void setSxfee(String sxfee) {
        this.sxfee = sxfee;
    }

    public String getCode() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public String getMin_price() {
        return min_price;
    }

    public void setMin_price(String min_price) {
        this.min_price = min_price;
    }

    public String getMax_price() {
        return max_price;
    }

    public void setMax_price(String max_price) {
        this.max_price = max_price;
    }
}
